﻿@model BuyThePeople.Models.T_USER

@{
    ViewBag.Title = "UserInfo";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

    @Html.ValidationSummary(true)

	<div class="main_container">
		<div id="content">		
			<div id="buttonList" style="margin:10px;">
				<a class="btn btn-inverse" href="@Url.Content(BuyThePeople.ConstFactory.UrlUserInfo)">회원정보수정</a>				
				<a id="button1" class="btn" href="@Url.Content(BuyThePeople.ConstFactory.UrlUserJointPurchase)/@(BuyThePeople.Composition.JointPurchaseType.Participation)" >공구참여내역보기</a>				
				<a id="button2" class="btn" href="@Url.Content(BuyThePeople.ConstFactory.UrlUserJointPurchase)/@(BuyThePeople.Composition.JointPurchaseType.Termination)" >공구종료보기</a>
                @if ((Session[BuyThePeople.ConstFactory.SessionUser] as BuyThePeople.Models.UserLoginData).IsSeller == true){
				<a id="button3" class="btn" href="@Url.Content(BuyThePeople.ConstFactory.UrlUserJointPurchase)/@(BuyThePeople.Composition.JointPurchaseType.Bid)" >입찰내역보기</a>
                }
            </div>	   
			<div class="modal-body" style="margin:0 auto;">
                <form class="form-horizontal" method="POST">
				    <fieldset>
					    <div class="control-group">
						    <!-- Username -->
						    <label class="control-label"  for="Name">이름</label>
						    <div class="controls">
							    <input type="text" id="Name" name="Name" value="@Model.Name" class="input-xlarge" required readonly="readonly">
							    <p class="help-block">이름을 입력해주세요.</p>
						    </div>
					    </div>
					    <div class="control-group">
						    <!-- ID -->
						    <label class="control-label"  for="ID">아이디</label>
						    <div class="controls">
							    <input type="text" id="ID" name="ID" value="@Model.ID" class="input-xlarge" required readonly="readonly">
							    <p class="help-block">아이디는 문자와 숫자로 공백없이 입력해주세요.</p>
						    </div>
					    </div>
					    <div class="control-group">
						    <!-- Password-->
						    <label class="control-label" for="Password">비밀번호</label>
						    <div class="controls">
                                <input type="password" id="Password" name="Password" class="input-xlarge" minlength="4">
							    <p class="help-block">비밀번호는 최소한 4 글자 이상으로 해주세요..</p>
						    </div>
					    </div>
					    <div class="control-group">
						    <!-- Password -->
						    <label class="control-label"  for="password_confirm">비밀번호(재입력)</label>
						    <div class="controls">
                                <input type="password" id="password_confirm" name="password_confirm" class="input-xlarge">
							    <p class="help-block">비밀번호를 다시 입력해주세요.</p>
						    </div>
					    </div>
					    <div class="control-group">
						    <!-- Email -->
						    <label class="control-label" for="email">E-mail</label>
						    <div class="controls">
							    <input type="text" id="Email" name="Email" value="@Model.Email" class="input-xlarge" required>
							    <p class="help-block">이메일 주소를 입력해주세요.</p>
						    </div>
					    </div>
					    <div class="control-group">
						    <!-- Telephone -->
						    <label class="control-label" for="address">전화번호</label>
						    <div class="controls">
							    <input type="text" id="Telephone" name="Telephone" value="@Model.Telephone" class="input-xlarge" required>
							    <p class="help-block">전화번호 입력해주세요.</p>
						    </div>
					    </div>
					    <div class="control-group">
						    <!-- Address -->
						    <label class="control-label" for="address">주소</label>
						    <div class="controls">
                                <input type="text" id="Address" name="Address" value="@Model.Address" class="input-xlarge" required>
							    <p class="help-block">주소를 입력해주세요.</p>
						    </div>
					    </div>
					    <div class="control-group">
						    <!-- AddressDetail -->
						    <label class="control-label" for="addressdetail">상세 주소</label>
						    <div class="controls">
                                <input type="text" id="AddressDetail" name="AddressDetail" value="@Model.AddressDetail" class="input-xlarge" required>
							    <p class="help-block">상세 주소를 입력해주세요.</p>
						    </div>
					    </div>
					    <div class="control-group">
						    <!-- IsSeller -->
						    <label class="control-label" for="IsSeller">판매자 여부</label>
						    <div class="controls">
                                @Html.CheckBox("IsSeller", Model.IsSeller == true)
							    <p class="help-block">판매자로 입찰 가능하도록 합니다.</p>
						    </div>
					    </div>
					    <div class="control-group">
						    <!-- Button -->
						    <div class="controls">
                                <button type="submit" class="btn btn-midium btn btn-warning" >변경하기</button>
						    </div>
					    </div>
				    </fieldset>
			    </form>
			</div>			
	    </div>
	</div>
